package com.xqb.modules.domain.po;

import com.xqb.common.annotation.Excel;
import com.xqb.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 互动问题的回答或评论对象 std_interaction_reply
 * 
 * @author xqb
 * @date 2024-10-14
 */
public class StdInteractionReply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 互动问题的回答id */
    private Long id;

    /** 互动问题问题id */
    @Excel(name = "互动问题问题id")
    private Long questionId;

    /** 回复的上级回答id */
    @Excel(name = "回复的上级回答id")
    private Long answerId;

    /** 回答者id */
    @Excel(name = "回答者id")
    private Long userId;

    /** 回答内容 */
    @Excel(name = "回答内容")
    private String content;

    /** 回复的目标用户id */
    @Excel(name = "回复的目标用户id")
    private Long targetUserId;

    /** 回复的目标回复id */
    @Excel(name = "回复的目标回复id")
    private Long targetReplyId;

    /** 评论数量 */
    @Excel(name = "评论数量")
    private Long replyTimes;

    /** 点赞数量 */
    @Excel(name = "点赞数量")
    private Long likedTimes;

    /** 是否被隐藏，默认false */
    @Excel(name = "是否被隐藏，默认false")
    private Integer hidden;

    /** 是否匿名，默认false */
    @Excel(name = "是否匿名，默认false")
    private Integer anonymity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setAnswerId(Long answerId) 
    {
        this.answerId = answerId;
    }

    public Long getAnswerId() 
    {
        return answerId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setTargetUserId(Long targetUserId) 
    {
        this.targetUserId = targetUserId;
    }

    public Long getTargetUserId() 
    {
        return targetUserId;
    }
    public void setTargetReplyId(Long targetReplyId) 
    {
        this.targetReplyId = targetReplyId;
    }

    public Long getTargetReplyId() 
    {
        return targetReplyId;
    }
    public void setReplyTimes(Long replyTimes) 
    {
        this.replyTimes = replyTimes;
    }

    public Long getReplyTimes() 
    {
        return replyTimes;
    }
    public void setLikedTimes(Long likedTimes) 
    {
        this.likedTimes = likedTimes;
    }

    public Long getLikedTimes() 
    {
        return likedTimes;
    }
    public void setHidden(Integer hidden) 
    {
        this.hidden = hidden;
    }

    public Integer getHidden() 
    {
        return hidden;
    }
    public void setAnonymity(Integer anonymity) 
    {
        this.anonymity = anonymity;
    }

    public Integer getAnonymity() 
    {
        return anonymity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getQuestionId())
            .append("answerId", getAnswerId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("targetUserId", getTargetUserId())
            .append("targetReplyId", getTargetReplyId())
            .append("replyTimes", getReplyTimes())
            .append("likedTimes", getLikedTimes())
            .append("hidden", getHidden())
            .append("anonymity", getAnonymity())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
